
import { InputNumber } from 'antd';

export default (props) => {
  const { suffix, ...restProps } = props;
  return suffix ? <div style={{ display: 'flex' }}>
    <InputNumber {...restProps} style={{ flexGrow: 1 }} />
    {restProps.disabled === true ? null : suffix}
  </div> : <InputNumber {...restProps} style={{ width: '100%' }} />
}